package web.exportfile;

public enum ExportFactory {
	
	export;
	
	public boolean  getAPI(int type,String data){  
		if(type == 1){
			return new ExportText().exprot(data);
		}else if(type == 2){
			return new ExportXml().exprot(data);
		}else if(type == 3){
			return new ExportDb().exprot(data);
		}else if(type == 4){
			return new ExportExcel().exprot(data);
		}else{
			return new ExportSql().exprot(data);
		}
	}
}
